\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{lucabeamer}[15/08/2009]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessOptions
\LoadClass[12pt]{beamer}

\mode<presentation>
{
\definecolor{luca.math}{RGB}{0,80,0}
\definecolor{luca.structure}{RGB}{0,20,128}
\definecolor{luca.alerted}{RGB}{200,0,0}
\definecolor{luca.block}{RGB}{224,224,224}

\setbeamercolor{structure}{fg=luca.structure}
\setbeamercolor{alerted text}{fg=luca.alerted}
%\setbeamercolor{math text}{fg=luca.math}

\setbeamercolor{palette primary}{fg=normal text.bg,bg=luca.structure!70}
\setbeamercolor{palette secondary}{fg=normal text.bg,bg=luca.structure!80}
\setbeamercolor{palette tertiary}{fg=normal text.bg,bg=luca.structure!90}
\setbeamercolor{palette quaternary}{fg=normal text.bg,bg=luca.structure}

\setbeamercolor{titlelike}{fg=luca.structure,bg=normal text.bg}

\setbeamercolor{block title}{fg=normal text.bg,bg=luca.structure}
\setbeamercolor{block title alerted}{use=alerted text,fg=luca.structure,bg=alerted text.fg!75!bg}
\setbeamercolor{block title example}{use=example text,fg=luca.structure,bg=example text.fg!75!bg}

\setbeamercolor{block body}{parent=normal text,use=block title,bg=luca.block}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!25!bg}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!25!bg}

\useinnertheme{rounded}
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=false,shadow=false]

\useinnertheme{circles}
\useoutertheme{default}

\setbeamertemplate{footline}
{
  \hbox{%
  \begin{beamercolorbox}[wd=.666666\paperwidth,ht=2.25ex,dp=1ex,left]{date in head/foot}%
    \usebeamerfont{date in head/foot}\hspace*{1em}\insertshorttitle~~\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
%    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
    \insertframenumber{} / 14\hspace*{2ex}
  \end{beamercolorbox}}%
  \vskip0pt%
}

\setbeamersize{text margin left=1em, text margin right=1em}
  
\setbeamercovered{transparent}
%\usefonttheme{professionalfonts}
}

